using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;

public partial class Templates_FlashItem : BaseTemplateUserControl
{
    protected void Page_Load(object sender, EventArgs e)
    {

    }

    public override void DataBind()
    {
        lnk.Visible = false;
        Acms.Bll.PostControl control = CurrentPost.FindPostControl("Link");
        if (control != null)
        {
            try
            {
                Acms.AcmsControls.TextContentControlProperties prop = control.GetProperties<Acms.AcmsControls.TextContentControlProperties>();
                if (prop != null && prop.Text != null)
                {
                    lnk.HRef = Page.ResolveClientUrl(prop.Text);
                    lnk.Visible = true;
                }
            }
            catch
            {
            }
        }
        base.DataBind();
    }

}
